import sequelize from '../config/sequelize';
import Sequelize from 'sequelize';
const UsersModel: any = sequelize.define(
  'Users',
  {
    //   id
    id: {
      allowNull: false,
      autoIncrement: true,
      primaryKey: true,
      type: Sequelize.INTEGER,
    },
    // 密码:计划使用md5加密的手段
    password: {
      type: Sequelize.STRING(32),
      allowNull: false,
    },
  },
  {
    tableName: 'Users',
  },
);
export default UsersModel;
